﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YY.Admin.Core
{
    /// <summary>
    ///用户上下文
    /// </summary>
    public class UserContext
    {
       /// <summary>
       /// 用户Id
       /// </summary>
        public long UserId { get; set; }
        /// <summary>
        ///租户Id
        /// </summary>
        public long TenantId { get; set; }
        /// <summary>
        ///账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        ///账号类型
        /// </summary>
        public AccountTypeEnum AccountType { get; set; }
        /// <summary>
        ///真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        ///是否超管
        /// </summary>
        public bool IsSuperAdmin { get; set; }
        /// <summary>
        /// 机构Id
        /// </summary>
        public long OrgId { get; set; }
        /// <summary>
        /// 用户token
        /// </summary>
        public UserToken Token { get; set; }
    }
}
